<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<input type="hidden" id="org_name" value="<x:out select="$xmlData/data/organizations/organization[@submit_org=1]/org_name"/>">
<div class="t_bar">
	为企业推介科技成果（技术、专利等）情况
</div>
	<table  id="tblShowThisTable" cellpadding="0" class="table01 t_css" width="100%" border="0" cellpadding="0" style="*border-bottom: #a1c0dc 1px solid;">
		<thead >
					<tr style="border:1px solid #B7D1E6">
						<th class="TblHead" align="center"  width="5%">选择</th>
						<th class="TblHead" align="center"  width="5%">序号</th>
						<th class="TblHead" align="center"  width="22.5%">成果名称</th> 
						<th class="TblHead" align="center"  width="22.5%">成果去向</th> 
						<th class="TblHead" align="center"  width="22.5%">成果来源</th> 
						<!-- <th class="TblHead" align="center"  width="22.5%">电话</th>  -->
					</tr>
			</thead>
			<tbody id="tab">
					<tr style="display:none">
						<td align="center">&nbsp;
							<input type="radio" style="border: 0px;background-color: white;" class="radiobutton" name="selMileStones" >
						</td>
						<td align="center"><span name="showthistables|milestone[0]@seq_no" >[index]</span> 
						</td>
						<td align="center"><input  id="unit_[0]" name="showthistables|milestone[0]|unit" label="成果名称" value="" maxlength="100" class=" required input_text" style="width:85%"/>
						</td>
						<td align="center"><input name="showthistables|milestone[0]|cooperation_form" class="input_text required" maxlength="100" label="成果去向" style="width: 85%;"/>
						</td> 
						<td align="center"><input name="showthistables|milestone[0]|lxr_name" class="input_text required" maxlength="100" label="成果来源" style="width: 85%;"/>
						</td>
						<!-- <td align="center"><input name="showthistables|milestone[0]|lxr_phone" class="input_text required" maxlength="100" label="电话" style="width: 85%;"/>
						</td -->
					</tr>
					
					
					<c:set value="0" var="index" scope="page"/>
					<x:forEach select="$xmlData/data/showthistables/milestone" var="milestone">
					
					<c:choose>
						<c:when test="${index<10}" ><c:set value="0" var="flag" scope="page"/></c:when>
						<c:otherwise><c:set value="" var="flag" scope="page"/></c:otherwise>
					</c:choose>
					<tr >
						<td align="center">&nbsp;
							<input type="radio" style="border: 0px;background-color: white;" class="radiobutton" name="selMileStones" >
						</td>
						<td align="center">
							<span name="showthistables/milestone[${flag}${index}]@seq_no" ><x:out select="$milestone/@seq_no"/></span> 
						</td>
						<td align="center">
							<input   value="<x:out select="$milestone/unit"/>" label="成果名称" name="showthistables/milestone[${flag}${index}]/unit" maxlength="100" class="required  input_text "  style="width:85%"/> 
						</td>
						<td align="center"><input name="showthistables/milestone[${flag}${index}]/cooperation_form" class="input_text required " label="成果去向" maxlength="100" style="width: 85%;" value="<x:out select="$milestone/cooperation_form"/>">
						</td>
						<td align="center"><input name="showthistables/milestone[${flag}${index}]/lxr_name" class="input_text required " label="成果来源" maxlength="100" style="width: 85%;" value="<x:out select="$milestone/lxr_name"/>">
						</td>
						<%-- <td align="center"><input name="showthistables/milestone[${flag}${index}]/lxr_phone" class="input_text required " label="电话" maxlength="100" style="width: 85%;" value="<x:out select="$milestone/lxr_phone"/>">
						</td> --%>
					</tr>
					<c:set value="${index+1}" var="index" scope="page"/>
					</x:forEach>
				</tbody>
					</table>
	<%-- <table  id="tblShowThisTable1" cellpadding="0" class="table01 t_css" width="100%" border="0" cellpadding="0" style="*border-bottom: #a1c0dc 1px solid;">
		<tr>
			<td width="10%" align="center">备注</td>
			<td width="30%">（产学研合作的项目请附产学研合作协议，上传格式要求为PDF格式）</td>

		<td width="50%" align="center" style="WORD-WRAP: break-word">
			<c:set var="file_code">
				<x:out select="$xmlData/data/basic_info/proof_file_code1" />
			</c:set>
			<div id="proof_content1" style="float: left; width: 200px;">
				 <c:if test="${empty file_code }">display:none;</c:if>
				<div id="proof_file1"
					style="<c:if test="${empty file_code}">display:none;</c:if>">
					<input type="hidden" id="file_code1"
						name="basic_info/proof_file_code1" class="required"
						label="备注-->产学研合作的项目请附产学研合作协议"
						value="<x:out select="$xmlData/data/basic_info/proof_file_code1" />" />
					<a id="file_url1" class="link_x"
						href="/egrantweb/file/ajax-filedownload?fileCode=<x:out select="$xmlData/data/basic_info/proof_file_code1" />"
						style="cursor: pointer;">
						<span name="basic_info/proof_file_name1" id="file_name1"
							style="color: blue;">
							<x:out select="$xmlData/data/basic_info/proof_file_name1" />
						</span>
					</a>
					<br />
					(上传时间
					<span name="basic_info/proof_file_date1" id="proof_file_date1">
						<iris:xout select="$xmlData/data/basic_info/proof_file_date1" />
					</span>
					)
					<a href="###" class="link_x" id="sy_delConent1"
						onclick="delContent_1('proof_file1',1)">删除</a>
				</div>
			</div>
		</td>
		<td width="10%"><input id="file1"   type="file" name="filedata" /></td>
		</tr>
	</table> --%>
			<table width="98%" align="center">
					<tr ><td>
					<input class="button" name="cmdAddbefore" type=button value="添加" onclick="if(checkTabLimit('tblShowThisTable',999,'为企业推介科技成果（技术、专利等）情况最多只能填写999条')){addNewRow('tblShowThisTable');showDateTag('tblShowThisTable');}try{top.resizeFrame();}catch(e){};">
					<input class="button" name="cmdMovePrev" type=button value="上移" onclick="movePrev('tblShowThisTable','selMileStones')">
					<input class="button" name="cmdMoveNext" type=button value="下移" onclick="moveNext('tblShowThisTable','selMileStones')">
					<input class="button" name="cmddel" type=button  value="删除" onclick="deleteSelectedRow('tblShowThisTable','为企业推介科技成果（技术、专利等）情况')">
					</td></tr>
	</table>
<script type="text/javascript">
	$(function(){
		/* if($("#tblShowThisTable tr:gt(1)").length==0){
			$("#tianjia").click();
		}
		$("#tblShowThisTable tr:eq(2) td:eq(2) input").val($("#org_name").val());
		$("#tblShowThisTable tr:eq(2) td:eq(2) input").removeClass("gray").addClass("gray");
		$("#tblShowThisTable tr:eq(2) td:eq(2) input").attr('readonly','readonly');
		$("#tblShowThisTable tr:eq(2) td:eq(0) input").attr('disabled','disabled');
		$("#jbutton").removeClass("table01");
		$("#jbutton1").removeClass("table01");
		changeCss();
		fileInit_1("tblShowThisTable1","PDF",null,"{'PDF':'20480'}");
		$("#tblShowThisTable1").find(".file").hide(); */
	});
	function changeCss() {
			$("table.t_css").each(function(){
				$(this).find("tr:even").removeClass().addClass("li_1");
				$(this).find("tr:odd").removeClass().addClass("li_2");
			});
			changeCss1("tblShowThisTable","tblShowThisTable1");
		}
		function changeCss1(id1,id2) {
			if($("#"+id1+" tr:last").attr("class")=="li_1"){
				$("#"+id2+" tr").removeClass("li_1").addClass("li_2");
			}else{
				$("#"+id2+" tr").removeClass("li_2").addClass("li_1");
			}
		}
</script>	